﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars;

namespace QuanLyTruong
{
    public partial class frmMain : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            Module.Connect();
        }

        private void mnTaoMoiNV_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmNhanVienMoi frm = new frmNhanVienMoi();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
            
        }

        private void mnQLTCTD_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmQLTieuChiThiDua frm = new frmQLTieuChiThiDua();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void QLCheDoNV_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmQuanLyCheDo frm = new frmQuanLyCheDo();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void mnQLNamHoc_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmQLNamHoc frm = new frmQLNamHoc();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void mnQLKhoiLop_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmQLKhoiLop frm = new frmQLKhoiLop();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void mnQLNganhDT_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmQLNganhDT frm = new frmQLNganhDT();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void mnQLHeThongLuong_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmQLHeThongLuong frm = new frmQLHeThongLuong();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void mnQLChucVU_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmQLChucVu frm = new frmQLChucVu();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void mnTaoMoiNguoiDung_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmTaoMoiNguoiDung frm = new frmTaoMoiNguoiDung();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void mnQLNguoiDung_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmQLNguoiDung frm = new frmQLNguoiDung();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void mnThietLapMatKhau_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmThietLapMatKhau frm = new frmThietLapMatKhau();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }

        private void mnDiemDanh_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmNV_DiemDanh frm = new frmNV_DiemDanh();
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }
    }
}